/**
 * 合作方相关的请求
 */
import ApiBase from './ApiBase';
import Urls from '../ApiUrls';

class ApiCoupon{
  getCouponModelList(params) {
    return ApiBase.send(Urls.URL_COUPON_MODEL_LIST,params);
  }
  getCouponModelById(params) {
    return ApiBase.send(Urls.URL_COUPON_MODEL_DETAIL,params);
  }
  addOrEditCouponModel(params) {
    return ApiBase.send(Urls.URL_COUPON_MODEL_SAVE,params);
  }
  changeCouponModelState(params){
    return ApiBase.send(Urls.URL_COUPON_MODEL_CHANGE,params);
  }
  //优惠券列表
  getCouponDetailList(params){
    return ApiBase.send(Urls.URL_COUPON_DETAIL_LIST,params);
  }
  //优惠券详情
  getCouponDetail(params){
    return ApiBase.send(Urls.URL_COUPON_DETAIL,params);
  }
  //查询业务员可以使用的优惠券
  getCouponDefineByEmployee(parms){
    return ApiBase.send(Urls.URL_COUPON_EMPLOYEE_COUPON_DEFINE,parms);
  }
  //发放优惠券
  distributeCoupon(parms){
    return ApiBase.send(Urls.URL_COUPON_DISTRIBUTE_COUPON,parms);
  }
  //删除优惠券模版
  deleteCouponDefine(params){
    return ApiBase.send(Urls.URL_COUPON_MODEL_DELETE,params);
  }
  //发放vip月度优惠券
  distributeMonthCouponToVips(parms){
    return ApiBase.send(Urls.URL_COUPON_DISTRIBUTE_MONTH_COUPON, parms);
  }
  //撤回优惠券
  revokeCoupon(params) {
    return ApiBase.send(Urls.URL_COUPON_REVOKE_COUPON, params);
  }
}
export  default  ApiCoupon
